============================================================
TECHNICAL SCRIPT: STARWAY DISPATCH INTELLIGENT AIRSPACE SYSTEM
============================================================

1. PROJECT ARCHITECTURE OVERVIEW
------------------------------------------------------------
StarwayDispatch is implemented as a C++ dynamic link library (DLL) integrated with the UC-winRoad SDK. The system follows a "Perception-Decision-Execution" closed-loop control architecture:
- Perception: Real-time traffic flow interception via SDK transient object hooks.
- Decision: Scientific density-based congestion evaluation and autonomous path planning.
- Execution: High-precision 3-stage flight maneuvering via Movement Override callbacks.

2. CORE ALGORITHMS & IMPLEMENTATION
------------------------------------------------------------
A. Scientific Traffic Density Model
   Instead of simple vehicle counting, we implement:
   ρ (Density) = Vehicle Count / Route Length (m).
   This ensures equitable load evaluation across heterogeneous aerial networks (ranging from 100m to 2km).

B. Virtual Intersection Fallback Algorithm
   To solve the logical disconnection issue in bridge-type aerial routes:
   - The system performs a 3D spatial geometry scan between non-intersecting roads.
   - It automatically generates "Virtual Nodes" based on horizontal projection proximity (<300m).
   - This allows the dispatch engine to bridge gaps in original road data, enabling seamless lane changes.

C. Autonomous 3-Stage Maneuvering (ALC)
   When Adaptive Scheduling is triggered, the system executes:
   1. Stage 1 (Ascend): Vertical climb to clear immediate airspace.
   2. Stage 2 (Lateral): Horizontal displacement toward the target route using SmoothStep interpolation.
   3. Stage 3 (Descend): Precision alignment and merging into the target traffic flow.

3. PERFORMANCE & SCALABILITY
------------------------------------------------------------
- Concurrency: Capable of tracking and scheduling 1,500+ aircraft units simultaneously.
- Latency: Real-time processing with sub-200ms dispatch response.
- Visualization: Integrated OpenGL rendering for 4-tier color-coded road status (Smooth/Slow/Busy/Jammed).

4. SOURCE FILE MANIFEST
------------------------------------------------------------
- F8main.cpp: Main plugin logic, SDK callbacks, and algorithm implementation.
- F8main.h: Data structures (AircraftUnit, RuleConfig) and function prototypes.
- StarwayDispatchPlugin.vcxproj: Project configuration and SDK library linking definitions.